function updateProjectEntry() {
    var selected = $("#projectEntryTable").bootstrapTable("getSelections");
    var selected_length = selected.length;
    if (!selected_length) {
        $MB.n_warning('请勾选需要修改的项目！');
        return;
    }
    if (selected_length > 1) {
        $MB.n_warning('一次只能修改一个项目！');
        return;
    }
    var projectId = selected[0].projectId;
    $.post(ctx + "projectEntry/get", {"projectId": projectId}, function (r) {
        if (r.code === 0) {
            var $form = $('#projectEntry-add');
            $form.modal();
            var projectEntry = r.msg;
            $("#projectEntry-add-modal-title").html('修改项目');
            $form.find("input[name='projectId']").val(projectEntry.projectId);
            $form.find("input[name='customer']").val(projectEntry.customer);
            $form.find("input[name='marketName']").val(projectEntry.marketName);
            $form.find("input[name='projectNo']").val(projectEntry.projectNo);
            $form.find("input[name='projectBaseLine']").val(projectEntry.projectBaseLine);
            // $form.find("input[name='projectType']").val(projectEntry.projectType);
            $("input:radio[value='" + projectEntry.projectType + "']").prop("checked", true);

            $form.find("input[name='typeName']").val(projectEntry.typeName);
            $form.find("input[name='memorySize']").val(projectEntry.memorySize);
            $form.find("input[name='createTime']").val(projectEntry.createTime);
            $form.find("input[name='updateTime']").val(projectEntry.updateTime);
            $("#projectEntry-add-button").attr("name", "update");
        } else {
            $MB.n_danger(r.msg);
        }
    });
}